package com.baiqian.doupo.gongfa;

public class GongFa {

    public GongFa() {
        gongfa_icon=0;
    }
    /**
     * @param gongfa_name 功法名
     * @param gongfa_icon 功法图标id
     * @param gongfa_level_big 功法等级：天地玄黄
     * @param gongfa_level_middle 功法等级：高中初
     * @param gongfa_douqi_speed 功法提供斗气增长速率(1.0)
     * @param gongfa_compress_speed 功法提供斗气压缩速率(1.0)
     * @param gongfa_soul_speed 功法提供灵魂增长速率(1.0)
     * @param gongfa_property 功法属性
     * @param gongfa_attack_num 使得每1点斗气多出多少攻击
     * @param gongfa_defense_num 使得每1点斗气多出多少防御
     * @param gongfa_recover_num 使得每1点斗气多出多少治愈
     */
    public GongFa(String gongfa_name,int gongfa_icon,int gongfa_level_big,int gongfa_level_middle,double gongfa_douqi_speed,
                  double gongfa_compress_speed,double gongfa_soul_speed,
                  int gongfa_property,double gongfa_attack_num,double gongfa_defense_num,double gongfa_recover_num){
        this.gongfa_name=gongfa_name;
        this.gongfa_icon=gongfa_icon;
        this.gongfa_level_big=gongfa_level_big;
        this.gongfa_level_middle=gongfa_level_middle;
        this.gongfa_douqi_speed=gongfa_douqi_speed;
        this.gongfa_compress_speed=gongfa_compress_speed;
        this.gongfa_soul_speed=gongfa_soul_speed;
        this.gongfa_property=gongfa_property;
        this.gongfa_attack_num=gongfa_attack_num;
        this.gongfa_defense_num=gongfa_defense_num;
        this.gongfa_recover_num=gongfa_recover_num;
    }
    public static GongFa getGongFa(String gongfa_name){
        switch (gongfa_name) {
            case "狂狮怒罡":
                return new GongFa_KuangShiNuGang();
            case "青木剑诀":
                return new GongFa_QingMuJianJue();
        }
        return null;
    }

    /**
     * 功法名
     */
    public String gongfa_name;
    /**
     * 功法图标id
     */
    public int gongfa_icon;
    /**
     * 功法等级：天地玄黄
     */
    public int gongfa_level_big;
    /**
     * 功法等级：高中初
     */
    public int gongfa_level_middle;
    /**
     * 功法提供斗气增长速率(1.0)
     */
    public double gongfa_douqi_speed;
    /**
     * 功法提供斗气压缩速率(1.0)
     */
    public double gongfa_compress_speed;
    /**
     * 功法提供灵魂增长速率(1.0)
     */
    public double gongfa_soul_speed;
    /**
     * 功法属性
     */
    public int gongfa_property;
    /**
     * 使得每1点斗气多出多少攻击
     */
    public  double gongfa_attack_num;
    /**
     * 使得每1点斗气多出多少防御
     */
    public  double gongfa_defense_num;
    /**
     * 使得每1点斗气多出多少治愈
     */
    public  double gongfa_recover_num;
}
